from twisted.web.server import Site
from twisted.internet import reactor
from twisted.web.resource import Resource
from twisted.web.static import File
import time


class ClockPage(Resource):
    isLeaf = True
    def render_GET(self, request):
        return "<html><body>%s</body></html>" % (time.ctime(),)


root = Resource()
root.putChild("static", File("/home/viridiana/sbdev18/altro/static"))
#resource = File("/home/viridiana/sbdev18/altro")
#resource = ClockPage()


factory = Site(root)
reactor.listenTCP(8880, factory)
reactor.run()
